//
//  PortPackaging.h
//  NetworkingSevers
//
//  Created by WorkSpace on 4/1/14.
//
//

#import <Foundation/Foundation.h>
#import "NetworkingSevers.h"
@interface PortPackaging : NSObject
{
    NSUserDefaults *userDefaults;
}
//@property (nonatomic,strong)


typedef  void (^ReceiveSuccess) (NSMutableDictionary *ReceiveData);
typedef  void (^ReceiveFailure) (NSError *error);

@property(nonatomic, strong)NetworkingSevers * baseServer;
-(void)getNonceMethod:(NSString *)method
        andController:(NSString *)controller
              andJson:(NSString *)json
                block:(ReceiveSuccess)receiveSuccess
            failblock:(ReceiveFailure)receiveFailure;
-(void)getCookieName:(NSString *)name
             withpwd:(NSString *)pwd
               block:(ReceiveSuccess)receiveSuccess
           failblock:(ReceiveFailure)receiveFailure;
-(void)loginToCookie:(NSString *)name
               block:(ReceiveSuccess)receiveSuccess
           failblock:(ReceiveFailure)receiveFailure;

-(void)test:(NSString *)orgecode withName:(NSString *)name withpwd:(NSString *)pwd block:(void (^)(id json))processResult failblock:(void(^)(NSError *error))failresult;
@end
